package backend.project.gym_management.mapper;

import backend.project.gym_management.pojo.dto.*;
import backend.project.gym_management.pojo.vo.StaffRepairRecordVO;
import backend.project.gym_management.pojo.vo.StaffSelectCourseVO;
import backend.project.gym_management.pojo.vo.StaffSelectEquipmentVO;
import backend.project.gym_management.pojo.vo.StaffSelectUserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StaffMapper {
    List<StaffSelectUserVO> selectUserByNameOrUid(StaffQuery staffQuery);

    int getTotal(StaffQuery staffQuery);

    List<StaffSelectCourseVO> selectCourseById(@Param("uid")Long uid);

    int updateStatus(StaffUpdateEquipmentParam update);

    int addRepairRecord(StaffAddRepairStatus add);

    List<StaffSelectEquipmentVO> selectAllEquipmentByPage(StaffEquipmentQuery query);
    int getTotalEquipment(StaffEquipmentQuery query);

    List<StaffRepairRecordVO> selectAllRepairRecordsByPage(StaffRepairQuery query);
    int getTotalRepairRecords(StaffRepairQuery query);

    int updateUserTitle(StaffUpdateUserTitleParam param);

    int addUser(StaffAddUserParam dto);

}
